#ifndef LED_APP_H
#define LED_APP_H
#include "TFT_LCD.h"
#include "app.h"

// #define SetPass_x 125
// #define SetPass_y 1
// #define route_x 253
// #define route_y 92
// #define lianjie_x 253
// #define lianjie_y 72
// #define yujing_x 230
// #define yujing_y 1
// #define moshi_x 7
// #define moshi_y 119
// #define	tizhong_x	116
// #define	tizhong_y	76
// #define shengao_x	116
// #define shengao_y	76
// #define	BMI_x	0
// #define	BMI_y 152
// #define	yuqiyali_x	0
// #define	yuqiyali_y	0
// #define	shijiyali_x	186
// #define	shijiyali_y	12
// //#define	shijian_x	130
// //#define	shijian_y	3
// #define fanshen_x	7
// #define fanshen_y	180
// #define	fanshenshijian_x	80
// #define	fanshenshijian_y	190
// #define bodongzhouqi_x 210
// #define bodongzhouqi_y 129
// #define bodongleftime_x 113
// #define bodongleftime_y 129
// #define fanshenzhouqi_x 210
// #define fanshenzhouqi_y 190
// #define fanshenleftime_x 113
// #define fanshenleftime_y 190
// #define lichuang_x 260
// #define lichuang_y 120

#define SetPass_x 125
#define SetPass_y 1
#define route_x 253
#define route_y 92
#define lianjie_x 253
#define lianjie_y 72
#define yujing_x 230
#define yujing_y 1
#define moshi_x 7    //7（旧UI坐标）
#define moshi_y 154  //119（旧UI坐标）
#define	tizhong_x	116
#define	tizhong_y	76
#define shengao_x	116
#define shengao_y	76
#define	BMI_x	0
#define	BMI_y 152
#define	yuqiyali_x	0
#define	yuqiyali_y	0
#define	shijiyali_x	186
#define	shijiyali_y	12
//#define	shijian_x	130
//#define	shijian_y	3
// #define fanshen_x	7
// #define fanshen_y	180
// #define	fanshenshijian_x	80
// #define	fanshenshijian_y	190
#define bodongzhouqi_x 210
#define bodongzhouqi_y 164//129（旧UI坐标）
#define bodongleftime_x 113
#define bodongleftime_y 164//129（旧UI坐标）
// #define fanshenzhouqi_x 210
// #define fanshenzhouqi_y 190
// #define fanshenleftime_x 113
// #define fanshenleftime_y 190
#define lichuang_x 260
#define lichuang_y 120

extern double BMI;
void show_list(void);
void show_info(void);

void Sound_off_icon(void);//（声音关闭）的图标

typedef enum {
    STATE_INIT,
    STATE_NORMAL//,STATE_LOW_PRESSURE
} PressureState;

void pressureStateMachine(void);

#endif
